
#ifndef EDITORPROCS_H
#define EDITORPROCS_H

#include <string>
#include <map>

template <typename T, typename U>
class create_map
{
private:
    std::map<T, U> m_map;
public:
    create_map(const T& key, const U& val)
    {
        m_map[key] = val;
    }

    create_map<T, U>& operator()(const T& key, const U& val)
    {
        m_map[key] = val;
        return *this;
    }

    operator std::map<T, U>()
    {
        return m_map;
    }
};

void RunCommand( std::string );

//vector<char*> Tokenize( char* str, char* delims );

void LoadFile( char* );
void SaveFile( char* );

void CreateBoxBrush( char* );
void CreateBoxBrushBB( char* );

void AddMesh(char*);

void MoveBuilderBrush( char* );
void RotateSelected( char* );
void FreezeTexture( char* );
void ResetTexture( char* );
void DeleteSelected( char* );
void CopySelected( char* );

void SetTexture( char* );
void FlushTextures( char* );

void GridSize( char* );
void PointSnap( char* );
void SetMode( char* );

void Select( char* );
void ClearSelection( char* );






#endif
